﻿{% extends "super.html" %}
{% block title %}员工管理{% endblock %}
{% block s1 %}active{% endblock %}
{% block titlehref %}index{% endblock %}
{% block titlename %}全局动态{% endblock %}
{% block subtitlehref %}{% endblock %}
{% block subtitlename %}员工管理{% endblock %}
{% block content %}

<section id="main-content">
    <section class="wrapper site-min-height">
        <div class="row">
            <div class="col-lg-12">
                <section class="panel">
                    <header class="panel-heading">
                        <span class="label label-primary">系统公告列表</span>
                    </header>
                    <div class="panel-body">

                        {%for i in list%}
                        {%if i.Type == 0%}
                        <div class="alert alert-success fade in">
                            <a href="getnews?id={{i.Id}}"><strong>[系统公告] </strong>{{i.Title}}<span class="pull-right">发布人：{{i.Author}}
                                - {{i.Create_time}}</span></a>
                        </div>
                        {%endif%}
                        {%if i.Type == 10%}
                        <div class="alert alert-info fade in">
                            <a href="getnews?id={{i.Id}}"><strong>[规章制度] </strong>{{i.Title}}<span class="pull-right">发布人：{{i.Author}}
                            - {{i.Create_time}}</span></a>
                        </div>
                        {%endif%}
                        {%if i.Type == 20%}
                        <div class="alert alert-warning fade in">
                            <a href="getnews?id={{i.Id}}"><strong>[招聘信息] </strong>{{i.Title}}<span class="pull-right">发布人：{{i.Author}}
                            - {{i.Create_time}}</span></a>
                        </div>
                        {%endif%}
                        {%endfor%}

                    </div>
                </section>
            </div>
        </div>

    </section>
</section>

<script>
    <!-- DATATABLE JS  -->
    $(document).ready(function () {
        $('#example').dataTable({
            "aaSorting": [[4, "desc"]]
        });
        $('#example2').dataTable({
            "aaSorting": [[4, "desc"]]
        });
        $('#example3').dataTable({
            "aaSorting": [[4, "desc"]]
        });
    });
</script>
<script src="static/js/common-scripts.js"></script><!-- BASIC COMMON JS  -->
{% endblock%}